<nz-modal [(nzVisible)]="isUpVisible" nzTitle="用户修改" (nzOnCancel)="handleCancel()" [nzFooter] = "null">
  <sf #yhUpsf button="none"  [schema]="updateYhSchema" [formData]="modiFormData"></sf>
  <div class="modal-footer">
    <button nz-button type="submit" [nzType]="'primary'" (click)="saveUp(yhUpsf.value)" [disabled]="!yhUpsf.valid">
    <i nz-icon nzType="save"></i>保 存
    </button>
  </div>
</nz-modal>

<nz-modal [(nzVisible)]="isGwVisible" [nzTitle]="modalGwTitle" [nzStyle]="{ top: '35px' }" (nzOnCancel)="handleCancel()" >
  <div style="background-color: #fff;margin-top:5px;padding:5px;height: 400px;overflow: auto;">
      <nz-tree
      [nzData]="gwnodes"
      nzCheckable
      nzMultiple
      nzCheckStrictly
      (nzClick)="nzEvent($event)"
      (nzExpandChange)="nzEvent($event)"
      (nzCheckBoxChange)="nzEvent($event)"
    >
    </nz-tree>
  </div>
  <div *nzModalFooter>
    <button nz-button nzType="default" (click)="handleCancel()">取消</button>
    <button nz-button nzType="primary" (click)="handleOkGw()">确定</button>
  </div>
</nz-modal>

<nz-card>
  <div nz-row>
    <div nz-col nzSpan="18">
      <sf #sf button="none" mode="search" [schema]="searchSchema">
      </sf>
    </div>
    
    <div  nz-col nzSpan="6" style="text-align:right;padding-top: 5px;">
      <button (click)="query()" nz-button nzType="primary">搜索</button>
    </div>
    
  </div>
  <lb-grid #st [columns]="yhColumns" [sname]="params.sname" [queryparas]="params.queryparas">

    <ng-template  lb-row="custom" let-item let-index="index" let-column="column">
      <nz-switch [ngModel]="item.STATUS==='1'" nzCheckedChildren="正常" nzUnCheckedChildren="停用" (ngModelChange)="changeState(index)" ></nz-switch>
    </ng-template>
  </lb-grid>
</nz-card>


